<%@ Language=VBScript %>
<%Option Explicit%>
<%
Response.Expires=0

if Session("UserName") = "" then
	response.Redirect "Login.asp"
end if
%>

<!--#include file="../cons.asp"-->
<!--#include file="../../Common/Database.asp"-->

<script src="../../js/prototype.js" type="text/javascript"></script>

<html>
<body bgcolor="#d4d4c0" style="margin: 0px;">
<center>
<br>
<table cellpadding="0" cellspacing="0" width=95% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;" ID="Table1">
<tr>
	<td style="background-image: url(../../images/sup_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
	<td style="border-top: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
	<td style="background-image: url(../../images/sup_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
</tr>
<tr>
	<td style="border-left: solid 1px #909090; background-color: #FCFCE4;" height=50>&nbsp;</td>
	<td style="background-color: #FCFCE4;">
		<table cellpadding="0" cellspacing="0" width=100% height=100% style="border-collapse: collapse; font-family: Verdana; font-size: 12px; table-layout:fixed;" ID="Table2">
			<tr>
				<td valign="top" style="font-weight: bold; width: 400px;">Buscar Alumno:</td>
				<td valign="top" style="font-weight: bold;"></td>
				<td valign="top" style="font-weight: bold;"></td>
			</tr>
			<tr>
				<td valign="top"><input onkeypress="if (event.keyCode == 13) {GetAlumno(txtAlumno.value);}" id="txtAlumno" name="txtAlumno" type="text" size="50"></td>
				<td valign="top" align="left"><input onclick="GetAlumno(txtAlumno.value);" type="button" value="Buscar"></td>
				<td valign="top" style="font-weight: bold;"></td>
			</tr>
		</table>
	</td>
	<td style="border-right: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
</tr>
<tr>
	<td style="background-image: url(../../images/inf_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
	<td style="border-bottom: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
	<td style="background-image: url(../../images/inf_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
</tr>
</table>
<br>
<table cellpadding="0" cellspacing="0" width=95% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;" ID="Table3">
<tr>
	<td width="50%" valign="top" align="center">
		<table cellpadding="0" cellspacing="0" width=90% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;" ID="Table4">
		<tr>
			<td style="background-image: url(../../images/sup_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-top: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/sup_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		<tr>
			<td style="border-left: solid 1px #909090; background-color: #FCFCE4;" height=50>&nbsp;</td>
			<td style="background-color: #FCFCE4;">
				<table cellpadding="0" cellspacing="0" width=100% height=100% style="border-collapse: collapse; font-family: Verdana; font-size: 12px;" ID="Table5">
					<tr>
						<td valign="top" style="font-weight: bold;">Alumnos Encontrados</td>
					</tr>
					<tr>
						<td valign="top" align="center"><br><div id="divListadoAlumnos" style="width: 400px; height: 200px;"></div></td>
					</tr>
				</table>
			</td>
			<td style="border-right: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
		</tr>
		<tr>
			<td style="background-image: url(../../images/inf_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-bottom: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/inf_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		</table>
	</td>

	<td width="50%" valign="top" align="center">
		<table cellpadding="0" cellspacing="0" width=90% style="border-collapse: collapse; font-family: Verdana; font-size: 0px;" ID="Table6">
		<tr>
			<td style="background-image: url(../../images/sup_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-top: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/sup_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		<tr>
			<td style="border-left: solid 1px #909090; background-color: #FCFCE4;" height=50>&nbsp;</td>
			<td style="background-color: #FCFCE4;">
				<table cellpadding="0" cellspacing="0" width=100% height=100% style="border-collapse: collapse; font-family: Verdana; font-size: 12px;" ID="Table7">
					<tr>
						<td valign="top" style="font-weight: bold;"><div id="divNombreAlumno" style="width:100%;">Materias de: </div></td>
					</tr>
					<tr>
						<td valign="top" align="center"><br><div id="divListadoMaterias" style="width: 400px; height: 200px;"></div></td>
					</tr>
				</table>
			</td>
			<td style="border-right: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
		</tr>
		<tr>
			<td style="background-image: url(../../images/inf_izq.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
			<td style="border-bottom: solid 1px #909090; background-color: #FCFCE4;">&nbsp;</td>
			<td style="background-image: url(../../images/inf_der.gif); background-repeat: no-repeat; width: 12px; height: 12px;"></td>
		</tr>
		</table>
	</td>
</tr>
</table>

<%
%>


<script>

function GetAlumno(txtAlumno)
{
	new Ajax.Request('AJAX_GetAlumnosXNomyAp.asp?txtAlumno='+txtAlumno+'',{
								method:'get',
								onSuccess:	function(transport)
											{
												//alert(transport.responseText);
												var response = transport.responseText || "no response text";       
												//alert("Success! \n\n" + response);
												divListadoAlumnos.innerHTML = response;
											},
								onFailure: function()
											{
													alert('No hay datos...');
											}   
								}
					); 
}

function GetPromMateriasAlumno(IdAlumno)
{
	new Ajax.Request('AJAX_GetPromMateriasAlumno.asp?IdAlumno='+IdAlumno+'',{
								method:'get',
								onSuccess:	function(transport)
											{
												//alert(transport.responseText);
												var response = transport.responseText || "no response text";       
												//alert("Success! \n\n" + response);
												divListadoMaterias.innerHTML = response;
											},
								onFailure: function()
											{
													alert('No hay datos...');
											}   
								}
					); 
}


function EnPantalla(idAlumno, idSedeCurso)
{
	window.open("../../Secretaria/bol.aspx?idAlumno="+idAlumno, "EnPantalla", "top=0, left=0, width=1024, height=650, toolbar=0");
}

function PopupEvAlumno(idAlumno, idSedeCurso, IdMateria)
{
	window.open("PopupEvAlumno.asp?idAlumno="+idAlumno+"&idSedeCurso="+idSedeCurso+"&IdMateria="+IdMateria, "PopupEvAlumno", "top=0, left=0, width=600, height=400, toolbar=0");
}
</script>
</center>
</body>
</html>